<?php
class Zenddn_System_Info{
    
    private $_auth;
    private $_authInfo;
    
    public function __construct(){
    	$this->_auth = Zend_Auth::getInstance();
        $this->_authInfo = $this->_auth->getIdentity();
    }
    
    public function checkLogin(){
        if($this->_auth->hasIdentity()){
    	   return true;
    	}
        
        return false;
    }
    
    public function getId(){
    	return $this->_authInfo->id;
    }
    
    public function getName(){
    	return $this->_authInfo->name;
    }
    
    public function getUsername(){
    	return $this->_authInfo->username;
    }
    
    public function getEmail(){
    	return $this->_authInfo->email;
    }
    
    public function getRole(){
    	return $this->_authInfo->role;
    }
}